import request from '@/utils/request'

// 查询笛虎无人设备列表
export function listUnattended(query) {
  return request({
    url: 'parking/unattended/device/list',
    method: 'get',
    params: query
  })
}

// 查询笛虎无人设备列表详细
export function getUnattended(deviceId) {
  return request({
    url: 'parking/unattended/device/' + deviceId,
    method: 'get'
  })
}

// 新增笛虎无人设备列表
export function addUnattended(data) {
  return request({
    url: 'parking/unattended/device',
    method: 'post',
    data: data
  })
}

// 修改笛虎无人设备列表
export function updateUnattended(data) {
  return request({
    url: 'parking/unattended/device',
    method: 'put',
    data: data
  })
}

// 删除笛虎无人设备列表
export function delUnattended(deviceId) {
  return request({
    url: 'parking/unattended/device/' + deviceId,
    method: 'delete'
  })
}
